﻿using Shop.Model.DB;
using Shop.Model.ModuleGoods;
using Shop.RemoteModel.PageModuleGoods.Model;
using WeDonekRpc.Model;

namespace Shop.Collect
{
    public interface IPageModuleGoodsCollect
    {
        Dictionary<long, int> SetSort ( DBPageModuleGoods template, int sort );
        void Delete ( DBPageModuleGoods dto );
        void Delete ( long[] ids );
        DBPageModuleGoods Get ( long id );
        ModuleGoodsBase[] GetGoods ( long tModuleId, string tag );
        ModuleGoodsBase[] Sync ( ModuleGoodsAdd add );
        void Clear ( long moduleId );

        void Clear ( long moduleId, string[] filter );
        long[] Query ( long moduleId, string tag, IBasicPage paging, out int count );
        long[] GetGoodsId ( long moduleId, string tag, int top );
    }
}